import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const user = {
  state: {
    loginName: '',
  },
  getters: {},
  mutations: {
    login(state, payload) {
      state.loginName = payload.loginName
    },
    loginOut(state) {
      state.loginName = ''
    },
  },
  actions: {},
  modules: {},
}

export default user
